home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Bonus / Database / mysql-max-3.23.55.sit / mysql-max-3.23.55-apple-darwi.1 / mysql-test / t / rpl000015.test < prev    next >
Encoding:
Text File  |  2003-01-21  |  898 b   |  35 lines  |  [TEXT/ttxt]

  1. connect (master,localhost,root,,test,0,mysql-master.sock);
  2. connect (slave,localhost,root,,test,0, mysql-slave.sock);
  3. connection master;
  4. reset master;
  5. show master status;
  6. save_master_pos;
  7. connection slave;
  8. reset slave;
  9. show slave status;
  10. change master to master_host='127.0.0.1';
  11. --replace_result 3306 9998 9306 9999 3334 9999 3335 9999
  12. show slave status;
  13. eval change master to master_host='127.0.0.1',master_user='root',
  14.  master_password='',master_port=$MASTER_MYPORT;
  15. --replace_result 9306 9999 3334 9999 3335 9999
  16. show slave status;
  17. slave start;
  18. sync_with_master;
  19. --replace_result 9306 9999 3334 9999 3335 9999
  20. show slave status;
  21. connection master;
  22. drop table if exists t1;
  23. create table t1 (n int);
  24. insert into t1 values (10),(45),(90);
  25. save_master_pos;
  26. connection slave;
  27. sync_with_master;
  28. select * from t1;
  29. connection master;
  30. drop table t1;
  31. save_master_pos;
  32. connection slave;
  33. sync_with_master;
  34.  
  35.